import Router from 'koa-router';
import accountRouter from './account/index';
import commonRouter from './common/index';
import videoRouter from './video/index';
import chatRouter from './chat/index';
import severAPIRouter from './severAPI/index';
import orgRouter from './orgManage/index';
import luominRouter from './luoming/index';
import loveRouter from './love/index';
import toolRouter from './tools/index';

const apiRouter = new Router();

// 账户相关
apiRouter.use('/account', accountRouter.routes(), accountRouter.allowedMethods());

// 通用接口
apiRouter.use('/common', commonRouter.routes(), commonRouter.allowedMethods());

// 视频接口
apiRouter.use('/video', videoRouter.routes(), videoRouter.allowedMethods());

// 聊天相关接口
apiRouter.use('/chat', chatRouter.routes(), chatRouter.allowedMethods());

// sever哈哈哈
apiRouter.use('/sever', severAPIRouter.routes(), severAPIRouter.allowedMethods());

// 机构管理
apiRouter.use('/org', orgRouter.routes(), orgRouter.allowedMethods());

// 罗铭用
apiRouter.use('/luoming', luominRouter.routes(), luominRouter.allowedMethods());

// 恋爱网站
apiRouter.use('/love', loveRouter.routes(), luominRouter.allowedMethods());

// 工具网站
apiRouter.use('/tools', toolRouter.routes(), toolRouter.allowedMethods());

export default apiRouter;
